kvm: fix page struct leak in handle_vmon
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 24 Jan 2017 10:56:21 +0000 (11:56 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 27 Feb 2017 15:58:07 +0000 (15:58 +0000)
commitf61d77198a75f4bc5d7d6ce441bcbbd045fe7715
treed4d599ff982786a3db0b42de1583a2837d260137
parentf81b091a7e91ef6063d183fc1a41ab0f0fc0740f
kvm: fix page struct leak in handle_vmon

handle_vmon gets a reference on VMXON region page,
but does not release it. Release the reference.

Found by syzkaller; based on a patch by Dmitry.

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
[bwh: Backported to 4.9: use skip_emulated_instruction()]

Gbp-Pq: Topic bugfix/x86
Gbp-Pq: Name kvm-fix-page-struct-leak-in-handle_vmon.patch
arch/x86/kvm/vmx.c